/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bbdd.classes;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;

public class TRiesgo {
    private Integer IdRiesgo;
    private Integer IdRuta;
    private Timestamp timeStamp;
    private Double currentLat;
    private String ns;
    private Double currentLon;
    private String ew;
    private Date dataStamp;

    public TRiesgo() {
    }

    public TRiesgo(Integer IdRiesgo, Integer IdRuta, Timestamp timeStamp, Double currentLat, String ns, Double currentLon, String ew, Date dataStamp) {
        this.IdRiesgo = IdRiesgo;
        this.IdRuta = IdRuta;
        this.timeStamp = timeStamp;
        this.currentLat = currentLat;
        this.ns = ns;
        this.currentLon = currentLon;
        this.ew = ew;
        this.dataStamp = dataStamp;
    }
    

    public Integer getIdRiesgo() {
        return IdRiesgo;
    }

    public void setIdRiesgo(Integer IdRiesgo) {
        this.IdRiesgo = IdRiesgo;
    }

    public Integer getIdRuta() {
        return IdRuta;
    }

    public void setIdRuta(Integer IdRuta) {
        this.IdRuta = IdRuta;
    }

    public Timestamp getTimeStamp() {
        return timeStamp;
    }
    public String getTimeStampString() {
        return new SimpleDateFormat("HH:mm:ss.S").format(timeStamp);
    } 

    public void setTimeStamp(Timestamp timeStamp) {
        this.timeStamp = timeStamp;
    }

    public Double getCurrentLat() {
        return currentLat;
    }

    public void setCurrentLat(Double currentLat) {
        this.currentLat = currentLat;
    }

    public String getNs() {
        return ns;
    }

    public void setNs(String ns) {
        this.ns = ns;
    }

    public Double getCurrentLon() {
        return currentLon;
    }

    public void setCurrentLon(Double currentLon) {
        this.currentLon = currentLon;
    }

    public String getEw() {
        return ew;
    }

    public void setEw(String ew) {
        this.ew = ew;
    }

    public Date getDataStamp() {
        return dataStamp;
    }

    public void setDataStamp(Date dataStamp) {
        this.dataStamp = dataStamp;
    }

            
    
}
